package com.example.demo.controller;

import com.example.demo.model.Book;
import com.example.demo.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: testLlist
 * @author: LiuYC
 * @date: 2021年04月25日 10:49
 */
@RestController
@RequestMapping("user")
public class TestController {
    @Resource
    BookService bookService;

    @RequestMapping("select")
    public List<Book> select(String name) {
        return bookService.select(name);
    }
}
